package com.crs.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class UserLendDTO {

    private Long resourceId;

    private Long userId;

    @NotEmpty(message = "请写明借用理由")
    @Size(min = 2,max = 100,message = "借用理由不能少于2个字不能大于100字")
    private String applyReason;

    @NotEmpty(message = "请写明归还时间")
    private LocalDateTime expectedReturn;
}
